package com.wsd.smartcarwasher.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

public class OfflineRecord implements Serializable {
    @ApiModelProperty(value = "Id")
    private Integer id;

    @ApiModelProperty(value = "机器Id")
    private Integer machineid;

    @ApiModelProperty(value = "级别")
    private String level;

    @ApiModelProperty(value = "事件码")
    private String eventcode;

    @ApiModelProperty(value = "事件内容")
    private String eventmessage;

    @ApiModelProperty(value = "0：快洗，1：普洗，2：打蜡")
    private Byte serviceid;

    @ApiModelProperty(value = "记录时间")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date recordtime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getMachineid() {
        return machineid;
    }

    public void setMachineid(Integer machineid) {
        this.machineid = machineid;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getEventcode() {
        return eventcode;
    }

    public void setEventcode(String eventcode) {
        this.eventcode = eventcode;
    }

    public String getEventmessage() {
        return eventmessage;
    }

    public void setEventmessage(String eventmessage) {
        this.eventmessage = eventmessage;
    }

    public Byte getServiceid() {
        return serviceid;
    }

    public void setServiceid(Byte serviceid) {
        this.serviceid = serviceid;
    }

    public Date getRecordtime() {
        return recordtime;
    }

    public void setRecordtime(Date recordtime) {
        this.recordtime = recordtime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", machineid=").append(machineid);
        sb.append(", level=").append(level);
        sb.append(", eventcode=").append(eventcode);
        sb.append(", eventmessage=").append(eventmessage);
        sb.append(", serviceid=").append(serviceid);
        sb.append(", recordtime=").append(recordtime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}